package demo2;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: happyiu
 * Date: 2021-11-27
 * Time: 19:41
 */
public class test {

    /*public static void main(String[] args) {

     Scanner scanner =new Scanner(System.in);
     String str =scanner.nextLine();
     StringBuilder builder = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
           char temp=str.charAt(i);
           if(!builder.toString().contains((temp+" "))){
               builder.append(temp);
           }
        }
        System.out.println(builder.toString());
        scanner.close();



    }*/
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            String s = sc.nextLine();
            String n = "";
            for (int i = 0; i < s.length(); i++) {
                String .valueOf(s.charAt(i));
                if(!n.contains((String.valueOf(s.charAt(i))))){
                    n+=String.valueOf(s.charAt(i));

                }
            }
            System.out.println(n);
        }
    }


}
